<html>
<head>
    <meta charset="UTF-8">
    <title>户学教育</title>
    <meta name="keywords" content="户学教育">
    <meta name="Description" content="户学教育"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,  user-scalable=0"/>
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/idangerous.swiper.css?t={time()}.{rand(10000,9999999)}">
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/common.css?t={time()}.{rand(10000,9999999)}">
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/mine.css?t={time()}.{rand(10000,9999999)}"/>
    <link rel="stylesheet" href="{HOME_THEME_PATH}../gw/css/myorder.css?t={time()}.{rand(10000,9999999)}"/>

    

    <script src="{HOME_THEME_PATH}../gw/js/jquery.min.js?t={time()}.{rand(10000,9999999)}"></script>
    <script type="text/javascript"t src="{THEME_PATH}js/dialog-plus.js?t={time()}.{rand(10000,9999999)}"></script>
    <script type="text/javascript" src="{THEME_PATH}js/jquery.artDialog.js?t={time()}.{rand(10000,9999999)}&skin=default"></script>
    <script type="text/javascript" src="{THEME_PATH}js/dayrui.js?t={time()}.{rand(10000,9999999)}"></script>
    <script type="text/javascript" src="{HOME_THEME_PATH}../gw/js/le_include_head.js?t={time()}.{rand(10000,9999999)}"></script>
    <link rel="icon" href="{HOME_THEME_PATH}../gw/img/f-logo.png" type="image/png" sizes="16x16">
</head>
<body class="order-page">
<div class="main">
    <!-- 头部 -->
    {template "../gw/common.html"}
    <div class="part part1">
        <div class="part-cont">
            <!-- 目录 -->
            <div class="menu-items">
                <a class="menu-item" href="{dr_user_url('home/index')}">个人中心</a>
                <a class="menu-item le-my-order active" href="{dr_user_url('pay/myorder')}">我的订单</a>
                 <a class="menu-item" href="{dr_user_url('pay/electivecenter')}">选课中心</a>
                <a class="menu-item" href="{dr_user_url('pay/changepassword')}">修改密码</a>
            </div>
            <!-- 内容 -->
            <div class="cont-items">
                <div class="cont-item count-order">
                    <!-- 订单页面标题 -->
                    <div class="cont4-title">
                        <div class="cont4-main-title">我的订单</div>
                    </div>
                    <!-- 订单TAB -->
                    <div class="cont4-navs">
                        <div class="cont4-nav active">全部订单</div>
                        <div class="cont4-nav">待付款</div>
                        <div class="cont4-nav">待学习</div>
                    </div>
                    <!-- &lt;!&ndash; 订单内容 &ndash;&gt;-->
                    <div class="cont4-conts order-history-list">
                        <div class="cont4-cont active">
                            <!-- &lt;!&ndash; 订单列表 &ndash;&gt; -->
                            <div class="order-wrap all-order">
                                {if count($orders)>0}
                                    {loop $orders $order}
                                        <div class="order-list">
                                            <div class="order-title-message">
                                                <!-- <div class="order-check"></div> -->
                                                <div class="order-date" style="padding-left: 0px;">{date('Y.m.d',$order['addtime'])}</div>
                                                <div class="order-message">
                                                    <div class="order-num-title">订单号</div>
                                                    <div class="order-symbol">:</div>
                                                    <div class="order-number">{$order['order_no']}</div>
                                                </div>
                                            </div>
                                            <div class="order-items">
                                                <div class="order-item-list">
                                                    {if $order['courses']}
                                                        {loop $order['courses'] $course}
                                                            <div class="order-class-item">
                                                                <div class="order-img order-math">
                                                                    <img src="{if !empty($order['course_url'])}{$order['course_url']}{else}{HOME_THEME_PATH}../gw/img/demo-order-class.jpg{/if}" alt="" class="order-img-box">
                                                                </div>
                                                                <div class="order-items-title">
                                                                    <div class="order-main-title">{if !empty($order['course_name'])}{mb_substr($order['course_name'],0,10,"utf-8")}{else}在线课程包{/if}</div>
                                                                    <div class="order-sub-title">{$course['type']}/{$course['stage']}/{$course['subject']}</div>
                                                                </div>
                                                                <div class="order-num">
                                                                    <div class="mark">x</div>
                                                                    <div class="num">{$course['num']}</div>
                                                                </div>
                                                                <div class="order-price">
                                                                    <div class="order-original-price">{$course['price']}</div>
                                                                    <!--<div class="order-special-price">1088.0</div>-->
                                                                </div>
                                                            </div>
                                                        {/loop}
                                                    {/if}
                                                </div>
                                                <div class="order-price-detail">
                                                    <div class="order-total-price price">{$order['totalprice']}</div>
                                                    <!--<div class="order-note">已折扣优惠券100元</div>-->
                                                </div>
                                                <div class="order-pay">
                                                    <div class="order-status">
                                                        {if $order['status'] == 0}
                                                                待付款
                                                            {else if $order['status'] == 1}
                                                                <p class='le_to_learn'>待排课</p>
                                                            {else if $order['status'] == 2}
                                                                <p class='le_to_learn'>已排课</p>
                                                            {else if $order['status'] == 3}
                                                                已完成
                                                            {else if $order['status'] == 4}
                                                                已关闭
                                                        {/if}
                                                    </div>
                                                    {if $order['status'] == 0}
                                                        <div class="order-btn"><a href="{dr_user_url('pay/wechatpay',array('oid'=>$order['id']))}">立即支付</a></div>
                                                    {/if}
                                                </div>
                                            </div>
                                        </div>
                                    {/loop}
                                  {else}
                                    <div class="order-wrap all-order no-order">
                                        <span class="order-msg">您还没有订单哦，快去选择您心仪的课程吧</span>
                                    </div>
                                {/if}
                            </div>
                        </div>
                        <div class="cont4-cont">
                            <!-- &lt;!&ndash; 订单列表 &ndash;&gt; -->
                            <div class="order-wrap all-order order-pending-payment">
                                {if count($nopay)>0}
                                        {loop $nopay $ord}
                                            <div class="order-list">
                                                <div class="order-title-message">
                                                    <!-- <div class="order-check"></div> -->
                                                    <div class="order-date" style="padding-left:0px;">{date('Y.m.d',$ord['addtime'])}</div>
                                                    <div class="order-message">
                                                        <div class="order-num-title">订单号</div>
                                                        <div class="order-symbol">:</div>
                                                        <div class="order-number">{$ord['order_no']}</div>
                                                    </div>
                                                </div>
                                                <div class="order-items">
                                                    <div class="order-item-list">
                                                        {if $ord['courses']}
                                                        {loop $ord['courses'] $cour}
                                                        <div class="order-class-item">
                                                            <div class="order-img order-math">
                                                                <img src="{if !empty($ord['course_url'])}{$ord['course_url']}{else}{HOME_THEME_PATH}../gw/img/demo-order-class.jpg{/if}" alt="" class="order-img-box">
                                                            </div>
                                                            <div class="order-items-title">
                                                                <div class="order-main-title">{if !empty($ord['course_name'])}{mb_substr($ord['course_name'],0,10,"utf-8")}{else}在线课程包{/if}</div>
                                                                <div class="order-sub-title">{$cour['type']}/{$cour['stage']}/{$cour['subject']}</div>
                                                            </div>
                                                            <div class="order-num">
                                                                <div class="mark">x</div>
                                                                <div class="num">{$cour['num']}</div>
                                                            </div>
                                                            <div class="order-price">
                                                                <div class="order-original-price">{$cour['price']}</div>
                                                                <!--<div class="order-special-price">1088.0</div>-->
                                                            </div>
                                                        </div>
                                                        {/loop}
                                                        {/if}
                                                    </div>
                                                    <div class="order-price-detail">
                                                        <div class="order-total-price price">{$ord['totalprice']}</div>
                                                        <!--<div class="order-note">已折扣优惠券100元</div>-->
                                                    </div>
                                                    <div class="order-pay">
                                                        <div class="order-status">
                                                            {if $ord['status'] == 0}
                                                            待付款
                                                            {else if $order['status'] == 1}
                                                            <p class='le_to_learn'>待排课</p>
                                                            {else if $order['status'] == 2}
                                                            <p class='le_to_learn'>已排课</p>
                                                            {else if $ord['status'] == 3}
                                                            已完成
                                                            {else if $ord['status'] == 3}
                                                            已关闭
                                                            {/if}
                                                        </div>
                                                        {if $ord['status'] == 0}
                                                        <div class="order-btn"><a href="{dr_user_url('pay/wechatpay',array('oid'=>$ord['id']))}">立即支付</a></div>
                                                        {/if}
                                                    </div>
                                                </div>
                                            </div>
                                        {/loop}
                                    {else}
                                    <div class="order-wrap all-order no-order">
                                        <span class="order-msg">您还没有订单哦，快去选择您心仪的课程吧</span>
                                    </div>
                                {/if}
                            </div>
                        </div>
                        <div class="cont4-cont">
                            <div class="order-wrap">
                                {if count($paylist)>0}
                                    {loop $paylist $payorders}
                                    <div class="order-list">
                                        <div class="order-title-message">
                                            <!-- <div class="order-check"></div> -->
                                            <div class="order-date" style="padding-left:0px;">{date('Y.m.d',$payorders['addtime'])}</div>
                                            <div class="order-message">
                                                <div class="order-num-title">订单号</div>
                                                <div class="order-symbol">:</div>
                                                <div class="order-number">{$payorders['order_no']}</div>
                                            </div>
                                        </div>
                                        <div class="order-items">
                                            <div class="order-item-list">
                                                {if $payorders['courses']}
                                                    {loop $payorders['courses'] $courss}
                                                        <div class="order-class-item">
                                                            <div class="order-img order-math">
                                                                <img src="{if !empty($payorders['course_url'])}{$payorders['course_url']}{else}{HOME_THEME_PATH}../gw/img/demo-order-class.jpg{/if}" alt="" class="order-img-box">
                                                            </div>
                                                            <div class="order-items-title">
                                                                <div class="order-main-title">{if !empty($payorders['course_name'])}{mb_substr($payorders['course_name'],0,10,"utf-8")}{else}在线课程包{/if}</div>
                                                                <div class="order-sub-title">{$courss['type']}/{$courss['stage']}/{$courss['subject']}</div>
                                                            </div>
                                                            <div class="order-num">
                                                                <div class="mark">x</div>
                                                                <div class="num">{$courss['num']}</div>
                                                            </div>
                                                            <div class="order-price">
                                                                <div class="order-original-price">{$courss['price']}</div>
                                                                <!--<div class="order-special-price">1088.0</div>-->
                                                            </div>
                                                        </div>
                                                    {/loop}
                                                {/if}
                                            </div>
                                            <div class="order-price-detail">
                                                <div class="order-total-price price">{$payorders['totalprice']}</div>
                                                <!--<div class="order-note">已折扣优惠券100元</div>-->
                                            </div>
                                            <div class="order-pay">
                                                <div class="order-status">
                                                    {if $payorders['status'] == 0}
                                                    待付款
                                                    {else if $payorders['status'] == 1}
                                                    <p class='le_to_learn'>待排课</p>
                                                    {else if $payorders['status'] == 2}
                                                    <p class='le_to_learn'>已排课</p>
                                                    {else if $payorders['status'] == 3}
                                                    已完成
                                                    {else if $payorders['status'] == 3}
                                                    已关闭
                                                    {/if}
                                                </div>
                                                {if $payorders['status'] == 0}
                                                <div class="order-btn"><a href="{dr_user_url('pay/wechatpay',array('oid'=>$payorders['id']))}">立即支付</a></div>
                                                {/if}
                                            </div>
                                        </div>
                                    </div>
                                    {/loop}
                                    {else}
                                    <div class="order-wrap all-order no-order">
                                        <span class="order-msg">您还没有订单哦，快去选择您心仪的课程吧</span>
                                    </div>
                                {/if}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 页尾 -->
    {template "../gw/footer.html"}
</div>


<!-- 滑动验证窗口 -->
<div class="slide-box">
    <div class="slide-box-wrap">
        <div class="foo-box">
            <div id="foo"></div>
        </div>
    </div>
</div>

</body>
<script src="{HOME_THEME_PATH}../gw/js/idangerous.swiper.min.js?t={time()}.{rand(10000,9999999)}"></script>
<!--<script src="{HOME_THEME_PATH}../gw/js/area.js?t={time()}.{rand(10000,9999999)}"></script>-->
<!--<script src="{HOME_THEME_PATH}../gw/js/alloy-crop.js?t={time()}.{rand(10000,9999999)}"></script>-->
<script src="{HOME_THEME_PATH}../gw/js/lrz.mobile.min.js?t={time()}.{rand(10000,9999999)}"></script>
<script src="{HOME_THEME_PATH}../gw/js/mine.js?t={time()}.{rand(10000,9999999)}"></script>
<script src="{HOME_THEME_PATH}../gw/js/iscroll.js?t={time()}.{rand(10000,9999999)}"></script>
<script src="{HOME_THEME_PATH}../gw/js/unlock.js?t={time()}.{rand(10000,9999999)}"></script>
<script src="{HOME_THEME_PATH}../gw/js/jquery.slideunlock.min.js?t={time()}.{rand(10000,9999999)}"></script>
</html>